package edu.hust.WebMagicTest;

import org.apache.log4j.BasicConfigurator;

import us.codecraft.webmagic.Spider;

public class CsdnBlogSpidder {
	
	public static void main(String[] args) {
		BasicConfigurator.configure();
		
		Spider.create(new CsdnPageProcessor())
		.addUrl("http://blog.csdn.net/huanhuan_tiantian")
		.addPipeline(new CsdnPipeLine())
		.thread(3)
		.run();
	}
}
